package io.renren.common.properties;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * renren yml属性映射
 *
 * @author txb
 */
@Data
@Component
@ConfigurationProperties(prefix = "renren")
public class RenrenProperties {

    private Redis redis;

    @Data
    @NoArgsConstructor
    public static class Redis {
        private Boolean open;
    }
}
